<ul id = "list-toolbar">
	<li><?php echo $html->link(__('Thêm nhóm', true), array('action'=>'add')); ?></li>
</ul>
<div class="groups index">
<?php $session->flash();?>
<h2><?php __('Danh Sách Nhóm');?></h2>
<table cellpadding="0" cellspacing="0" width="50%" border="1px">
<tr>
	<th><?php echo $paginator->sort('name');?></th>
	<th></th>
</tr>
<?php
$i = 0;
foreach ($groups as $group):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td align="center">
			<?php echo $group['Group']['name']; ?>
		</td>
		<td class="actions" align="center">
			<?php echo $html->link(__('Sửa', true), array('action'=>'edit', $group['Group']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action'=>'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>